/**
 * Created by zycool on 2016/8/17.
 * 基础数据各项详情数据模板
 */


var pipeTemplate = {

    // 管道基础信息
    base: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'fromPipeValveRoomName', title: '起点场站阀室：'},
        {name: 'toPipeValveRoomName', title: '终点场站阀室：'},
        {name: 'pipelineType', title: '管道类别：'},
        {name: 'operationalStatus', title: '运行状态：'},
        {name: 'designLength', title: '设计长度(m)：'},
        {name: 'countLength', title: '计算长度(m)：'},
        {name: 'inserviceTime', title: '投用日期：'},
        {name: 'diameter', title: '管径(mm)：'},
        {name: 'wallthickness', title: '壁厚(mm)：'},
        {name: 'material', title: '管材：'},
        {name: 'manupipeType', title: '制管方式：'},
        {name: 'coatingmaterial', title: '防腐材料：'},
        {name: 'coatingGrade', title: '防腐等级：'},
        {name: 'jointMaterial', title: '补口材料：'},
        {name: 'incoatingMaterial', title: '内涂层材料：'},
        {name: 'cpType', title: '阴保方式：'},
        {name: 'designTranYear', title: '设计输量(10⁴m³/d)：'},
        {name: 'pressureRating', title: '设计压力(MPa)：'},
        {name: 'mediumType', title: '输送介质：'},
        {name: 'dryOrWet', title: '干气或湿气：'},
        {name: 'h2s', title: '硫化氢含量(mg/m³)：'},
        {name: 'pipeFunction', title: '管线功能：'},
        {name: 'designUnit', title: '设计单位：'},
        {name: 'construcion', title: '施工单位：'},
        {name: 'supervision', title: '监理单位：'},
        {name: 'testingCompany', title: '检测单位：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 场站阀室
    room: [
        {name: 'name', title: '场站阀室名称：'},
        {name: 'customNumber', title: '场站阀室编号：'},
        {name: 'type', title: '场站阀室类型：'},
        {name: 'locationDescription', title: '位置描述：'},
        {name: 'isPiggingDeviceind', title: '是否具有收发球筒：'},
        {name: 'isPowerind', title: '是否具有阴保电源：'},
        {name: 'isEmptyingDevice', title: '是否具有放空装置：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 钢管信息
    steel: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'pipeNumber', title: '钢管编号：'},
        {name: 'manufacturedNum', title: '出厂编号：'},
        {name: 'material', title: '管材：'},
        {name: 'pipeType', title: '钢管类型：'},
        {name: 'manupipeseamType', title: '制管焊缝类型：'},
        {name: 'ugwwId', title: '上游环焊缝焊接编号：'},
        {name: 'dgwwId', title: '下游环焊缝焊接编号：'},
        {name: 'stoveserialNum', title: '炉批号：'},
        {name: 'diameter', title: '管径(mm)：'},
        {name: 'wallThickness', title: '壁厚(mm)：'},
        {name: 'pipeLength', title: '管节长度(m)：'},
        {name: 'coatingMaterial', title: '防腐材料：'},
        {name: 'coatingSource', title: '防腐层安装地点：'},
        {name: 'interNalorexternal', title: '内外防腐：'},
        {name: 'coatingThickness', title: '防腐层厚度(mm)：'},
        {name: 'testVoltage', title: '检漏电压(KV)：'},
        {name: 'pipeManufacturer', title: '钢管生产厂家：'},
        {name: 'pipeManufactureDate', title: '钢管生产日期：'},
        {name: 'coatingManufacturer', title: '防腐层制造厂家：'},
        {name: 'coatingManufactureDate', title: '防腐层制造日期：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 线路阀门
    valve: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'valvaNumber', title: '阀门编号：'},
        {name: 'valveStatus', title: '阀门状态：'},
        {name: 'manufacturedNum', title: '出厂编号：'},
        {name: 'valveType', title: '阀门类型：'},
        {name: 'operatorType', title: '驱动类型：'},
        {name: 'ipipeValveroomNamed', title: '所属场站阀室：'},
        {name: 'automated', title: '是否为自动阀：'},
        {name: 'inletConnectionType', title: '进口连接类型：'},
        {name: 'inletDiameter', title: '进口直径(mm)：'},
        {name: 'inletWallThickness', title: '进口壁厚(mm)：'},
        {name: 'outletConnectionType', title: '出口连接类型：'},
        {name: 'outletDiameter', title: '出口直径(mm)：'},
        {name: 'outletWallThickness', title: '出口壁厚(mm)：'},
        {name: 'pressureRating', title: '压力等级(Mpa)：'},
        {name: 'valvefunction', title: '阀门功能：'},
        {name: 'indremotecon', title: '是否可以远程控制：'},
        {name: 'manufacturer', title: '生产厂商：'},
        {
            name: 'manufacturedDate', title: '生产日期：', render: function (d) {
            return Dyy.getDate(d);
        }
        },
        {
            name: 'inserviceDate', title: '投用日期：', render: function (d) {
            return Dyy.getDate(d);
        }
        },
        {name: 'constructionCompany', title: '施工单位：'},
        {name: 'inspectingCompany', title: '监理单位：'},
        {name: 'testingCompany', title: '检测单位：'},
        {name: 'recorder', title: '记录人：'},
        {
            name: 'recordTime', title: '记录时间：', render: function (d) {
            return Dyy.getDate(d);
        }
        },
        {name: 'remark', title: '备注：'}
    ],

    // 热煨弯头
    elbow: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'bowNumber', title: '弯头编号：'},
        {name: 'elbowType', title: '弯头类型：'},
        {name: 'ugwwId', title: '上游环焊缝编号：'},
        {name: 'dgwwId', title: '下游环焊缝编号：'},
        {name: 'mileage', title: '绝对距离(m)：'},
        {name: 'material', title: '材质：'},
        {name: 'antisepticMaterial', title: '防腐材料：'},
        {name: 'pressureRating', title: '压力等级(MPa)：'},
        {name: 'elbowAngle', title: '弯头角度(°)：'},
        {name: 'elbowCurvrad', title: '曲率半径(D)：'},
        {name: 'outletDiameter', title: '出口直径(mm)：'},
        {name: 'outletWallThickness', title: '出口壁厚(mm)：'},
        {name: 'outletConnectionType', title: '出口链接类型：'},
        {name: 'manufacturer', title: '生产厂商：'},
        {name: 'coatingManufacturer', title: '防腐层制造厂商：'},
        {name: 'manufacturedDate', title: '生产日期：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 冷弯弯头
    celbow: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'elbowNumber', title: '弯头编号：'},
        {name: 'bowType', title: '弯头类型：'},
        {name: 'pipeNumber', title: '钢管编号：'},
        {name: 'ugwwId', title: '上游环焊缝编号：'},
        {name: 'dgwwId', title: '下游环焊缝编号：'},
        {name: 'mileage', title: '绝对距离(m)：'},
        {name: 'elbowAngle', title: '弯头角度(°)：'},
        {name: 'elbowCurvrad', title: '曲率半径(D)：'},
        {name: 'direction', title: '方向：'},
        {name: 'curveLength', title: '曲线长：'},
        {name: 'tangentLength', title: '切线长：'},
        {name: 'arcLength', title: '弧长：'},
        {name: 'coatingmAterial', title: '防腐材料：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 三通
    tee: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'teeNumber', title: '三通编号：'},
        {name: 'ugwwId', title: '上游环焊缝焊接编号：'},
        {name: 'dgwwId', title: '下游环焊缝焊接编号：'},
        {name: 'mileage', title: '绝对距离(m)：'},
        {name: 'teeType', title: '三通类型：'},
        {name: 'teeMaterial', title: '三通材料：'},
        {name: 'scraperbarind', title: '是否有隔栅：'},
        {name: 'branchDiameter', title: '支线直径(mm)：'},
        {name: 'branchWallThickness', title: '支线壁厚(mm)：'},
        {name: 'outletDiameter', title: '出口直径(mm)：'},
        {name: 'outletWallThickness', title: '出口壁厚(mm)：'},
        {name: 'outletConnectionType', title: '出口连接方式：'},
        {name: 'pressureRating', title: '压力等级(Mpa)：'},
        {name: 'manufacturer', title: '生产厂商：'},
        {name: 'manufactureddate', title: '生产日期：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 收发球筒
    structure: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'piggingstructureNumber', title: '收发球筒编号：'},
        {name: 'pipeValveRoomName', title: '所属场站阀室：'},
        {name: 'pressureRating', title: '压力等级(Mpa)：'},
        {name: 'sbarrelLength', title: '小球筒长度(mm)：'},
        {name: 'sbarrelDiameter', title: '小球筒直径(mm)：'},
        {name: 'sbarrelWallThickness', title: '小球筒壁厚(mm)：'},
        {name: 'bbarrelLength', title: '大球筒长度(mm)：'},
        {name: 'outletConnectionType', title: '大球筒直径(mm)：'},
        {name: 'bbarrelWallThickness', title: '大球筒壁厚(mm)：'},
        {name: 'manufacturer', title: '生产厂商：'},
        {name: 'manufacturedDate', title: '生产日期：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 穿跨越
    cross: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'crossingNumber', title: '穿跨越编号：'},
        {name: 'crossingType', title: '穿跨越类型：'},
        {name: 'crossingName', title: '穿跨越名称：'},
        {name: 'crossingTarget', title: '穿跨越对象：'},
        {name: 'length', title: '穿越长度(m)：'},
        {name: 'fromMileage', title: '起点绝对距离(m)：'},
        {name: 'fromReference', title: '起点相对最近测试桩：'},
        {name: 'fromReferenceDistance', title: '起点相对最近测试桩距离(m)：'},
        {name: 'toMileage', title: '终点绝对距离(m)：'},
        {name: 'toReference', title: '终点相对最近测试桩：'},
        {name: 'toReferenceDistance', title: '终点相对最近测试桩距离(m)：'},
        {name: 'locationDescription', title: '位置描述：'},
        {name: 'number', title: '管节数：'},
        {name: 'material', title: '材质：'},
        {name: 'wallThickness', title: '壁厚(mm)：'},
        {name: 'pipeStableMeasures', title: '稳管措施：'},
        {name: 'isSleeve', title: '是否有套管：'},
        {name: 'coatingMaterial', title: '防护层材料：'},
        {name: 'coatingThickness', title: '防护层厚度(mm)：'},
        {name: 'completionDataNumber', title: '竣工资料编号：'},
        {name: 'assemblyCompany', title: '施工单位：'},
        {name: 'inspectingCompany', title: '监理单位：'},
        {name: 'testingCompany', title: '检测单位：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 环焊缝 - 类型0
    gww0: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'gwwNumber', title: '环焊缝焊接编号：'},
        {name: 'mileage', title: '绝对距离(m)：'},
        {name: 'wpsNumber', title: 'WPS编号：'},
        {name: 'assemblyCompany', title: '施工单位：'},
        {name: 'constructionDate', title: '施工日期：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 环焊缝 - 类型1
    gww1: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'gwwNum', title: '环焊缝焊接编号：'},
        {name: 'ndtType', title: '无损检测类型：'},
        {name: 'repairind', title: '是否返修：'},
        {name: 'testDate', title: '检测日期：'},
        {name: 'testingReport', title: '检测报告：'},
        {name: 'testingCompany', title: '检测单位 ：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 开孔
    tap: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'tapNumber', title: '开孔编号：'},
        {name: 'mileage', title: '绝对距离(m)：'},
        {name: 'reference', title: '最近测试桩：'},
        {name: 'referenceDistance', title: '相对最近测试桩距离(m)：'},
        {name: 'locationDescription', title: '位置描述：'},
        {name: 'capacity', title: '承受能力(Mpa)：'},
        {name: 'cappedind', title: '是否有管冒：'},
        {name: 'flowDirection', title: '流向：'},
        {name: 'meteredind', title: '是否有计量设备：'},
        {name: 'outsideDiameter', title: '主管道外径(mm)：'},
        {name: 'pressureRating', title: '压力等级(Mpa)：'},
        {name: 'premanufacturedind', title: '是否为工厂预制：'},
        {name: 'tapsize', title: '开孔尺寸(mm)：'},
        {name: 'wallthickness', title: '壁厚(mm)：'},
        {name: 'tapType', title: '开孔类型：'},
        {name: 'tapPingmethod', title: '开孔方式：'},
        {name: 'tapReason', title: '开孔原因：'},
        {name: 'tappingDate', title: '开孔日期：'},
        {name: 'assemblyCompany', title: '施工单位：'},
        {name: 'inspectingCompany', title: '监理单位：'},
        {name: 'testingCompany', title: '检测单位：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 封堵物
    closure: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'customNumber', title: '封堵物编号：'},
        {name: 'closureType', title: '封堵物类型：'},
        {name: 'closureMaterial', title: '封堵物材料：'},
        {name: 'mileage', title: '绝对距离(m)：'},
        {name: 'locationDescription', title: '位置描述：'},
        {name: 'reference', title: '最近测试桩：'},
        {name: 'referenceDistance', title: '相对最近测试桩距离(m)：'},
        {name: 'antisepticMaterial', title: '封堵物防腐材料：'},
        {name: 'pressureRating', title: '压力等级(Mpa)：'},
        {name: 'inserviceDate', title: '投用日期：'},
        {name: 'assemblyCompany', title: '施工单位：'},
        {name: 'inspectingCompany', title: '监理单位：'},
        {name: 'testingCompany', title: '检测单位：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 异径管
    reducer: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'reducerNumber', title: '异径管编号：'},
        {name: 'manufacturedDate', title: '生产日期：'},
        {name: 'mileage', title: '绝对距离(m)：'},
        {name: 'reference', title: '最近测试桩：'},
        {name: 'referenceDistance', title: '相对最近测试桩距离(m)：'},
        {name: 'reducerType', title: '异径管类型：'},
        {name: 'material', title: '异径管材料：'},
        {name: 'pressureRating', title: '压力等级(Mpa)：'},
        {name: 'outletConnectionType', title: '出口连接类型：'},
        {name: 'outletDiameter', title: '出口直径(mm)：'},
        {name: 'outletwallthickness', title: '出口壁厚(mm)：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 附属物 - 0 - 点状
    adjunct0: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'customNumber', title: '附属物编号：'},
        {name: 'appurtenanceType', title: '附属物类型：'},
        {name: 'fromMileage', title: '绝对距离(m)：'},
        {name: 'fromReference', title: '相对最近测试桩：'},
        {name: 'fromReferenceDistance', title: '相对最近测试桩距离(m)：'},
        {name: 'appurtenanceStatus', title: '附属物状态：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 附属物 - 1 - 线状
    adjunct1: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'customNumber', title: '附属物编号：'},
        {name: 'appurtenanceType', title: '附属物类型：'},
        {name: 'fromMileage', title: '起点绝对距离(m)：'},
        {name: 'fromReference', title: '起点相对最近测试桩：'},
        {name: 'fromReferenceDistance', title: '起点相对最近测试桩距离(m)：'},
        {name: 'toMileage', title: '终点绝对距离(m)：'},
        {name: 'toReference', title: '终点相对最近测试桩：'},
        {name: 'toReferenceDistance', title: '终点相对最近测试桩距离(m)：'},
        {name: 'appurtenanceStatus', title: '附属物状态：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 套管
    cover: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'pipePipecrossName', title: '所属穿跨越：'},
        {name: 'filledind', title: '是否已填充：'},
        {name: 'fromMileage', title: '起点绝对距离(m)：'},
        {name: 'fromReference', title: '起点最近测试桩：'},
        {name: 'fromReferenceDistance', title: '起点相对最近测试桩距离(m)：'},
        {name: 'toMileage', title: '终点绝对距离(m)：'},
        {name: 'toReference', title: '终点最近测试桩：'},
        {name: 'toReferenceDistance', title: '终点相对最近测试桩距离(m)：'},
        {name: 'casingLength', title: '套管长度(mm)：'},
        {name: 'wallThickness', title: '套管壁厚(mm)：'},
        {name: 'diameter', title: '直径(mm)：'},
        {name: 'sealtype', title: '密封类型：'},
        {name: 'insulatorind', title: '是否绝缘：'},
        {name: 'shortedind', title: '是否短接：'},
        {name: 'ventedind', title: '是否已排空：'},
        {name: 'casingType', title: '套管类型：'},
        {name: 'antisepticMaterial', title: '防腐材料：'},
        {name: 'fillMaterial', title: '填充材料：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 地面标识
    identification: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'signNumber', title: '标识编号：'},
        {name: 'signType', title: '标识类型：'},
        {name: 'mileage', title: '绝对距离(m)：'},
        {name: 'signStatus', title: '标识状态：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 埋地标识
    mark: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'manufacturedNum', title: '出厂编号：'},
        {name: 'mileage', title: '绝对距离(m)：'},
        {name: 'reference', title: '相对最近测试桩：'},
        {name: 'referenceDistance', title: '相对最近测试桩距离(m)：'},
        {name: 'markerType', title: '标识类型：'},
        {name: 'manufacturer', title: '生产厂商：'},
        {name: 'installDate', title: '安装日期：'},
        {name: 'assemblyCompany', title: '施工单位：'},
        {name: 'markerDepth', title: '标识器埋深(m)：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 警示带、警示板
    markwarn: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'fromMileage', title: '起点绝对距离(m)：'},
        {name: 'fromReference', title: '起点相对最近测试桩：'},
        {name: 'fromReferenceDistance', title: '起点相对最近测试桩距离(m)：'},
        {name: 'toMileage', title: '终点绝对距离(m)：'},
        {name: 'toReference', title: '终点相对最近测试桩：'},
        {name: 'toReferenceDistance', title: '终点相对最近测试桩距离(m)：'},
        {name: 'markerType', title: '标识类型：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 水工保护
    protection: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'protectionName', title: '水工保护名称：'},
        {name: 'materialType', title: '材料：'},
        {name: 'fromMileage', title: '起点绝对距离(m)：'},
        {name: 'fromReference', title: '起点相对最近测试桩：'},
        {name: 'fromReferenceDistance', title: '起点相对最近测试桩距离(m)：'},
        {name: 'toMileage', title: '终点绝对距离(m)：'},
        {name: 'toReference', title: '终点相对最近测试桩：'},
        {name: 'toReferenceDistance', title: '终点相对最近测试桩距离(m)：'},
        {name: 'locationDescription', title: '位置描述：'},
        {name: 'protectionType', title: '水工保护类型：'},
        {name: 'protectionSize', title: '构筑物尺寸(m)：'},
        {name: 'inserviceDate', title: '投用日期：'},
        {name: 'assemblyCompany', title: '施工单位：'},
        {name: 'inspectingCompany', title: '监理单位：'},
        {name: 'testingcompany', title: '检测单位：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ],

    // 输送介质
    medium: [
        {name: 'pipeLineName', title: '管道名称：'},
        {name: 'mediaType', title: '介质类型：'},
        {name: 'temperature', title: '温度(℃)：'},
        {name: 'ph', title: 'PH：'},
        {name: 'co2', title: '二氧化碳含量(%)：'},
        {name: 'cl', title: '氯含量(%)：'},
        {name: 'density', title: '密度：'},
        {name: 'h2s', title: '硫化氢含量(%)：'},
        {name: 'h2o', title: '水含量(%)：'},
        {name: 'boil', title: '沸点(℃)：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：'},
        {name: 'remark', title: '备注：'}
    ]
};